//
//  BCSearchHistoryCollectionViewCell.m
//  BangcaiBuy
//
//  Created by Liang Zhang on 16/6/23.
//  Copyright © 2016年 BCB. All rights reserved.
//

#import "BCSearchHistoryCollectionViewCell.h"

@implementation BCSearchHistoryCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView {
    static NSString *ID = @"HistoryCell";
    UINib *nib = [UINib nibWithNibName:@"BCSearchHistoryCollectionViewCell" bundle: [NSBundle mainBundle]];
    [collectionView registerNib:nib forCellWithReuseIdentifier:ID];
    BCSearchHistoryCollectionViewCell *cell = [[BCSearchHistoryCollectionViewCell alloc] init];
    return cell;
}

- (IBAction)deleteAction:(id)sender {
    self.DeleteHistoryItem();
}

@end
